package cn;

public class Triangle {
	double recton(double a, double b, double c) {
		double Area = 0;
		if (a + b > c) {
			double p = (a + b + c) / 2;
			Area = Math.sqrt(p * (p - a) * (p - b) * (p - c));
		}
		return Area;
	}

	public static void main(String[] args) {
		Triangle t = new Triangle();
		System.out.println("输出三角形的面积Area=" + t.recton(6, 8, 10));

	}

}
